package com.woniu.gf.pawn.management.param;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;

/**
 * @BelongsProject: gf-pawn-system
 * @BelongsPackage: com.woniu.gf.pawn.management.management.param
 * @Author: rofus
 * @CreateTime: 2020-10-14 17:34
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SelectManagementParam {
    /**
     * 页码
     */
    @Min(1)
    private int pageIndex;
    /**
     * 条数
     */
    @Min(5)
    @Max(30)
    private int pageSize;

    /**
     * 管理员姓名
     */
    private String managementName;
    /**
     * 管理员状态
     */
    private String managementStatus;
    /**
     * 管理员电话号
     */
    private String managementPhone;

    /**
     * 新增管理员的起始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date managementAddTimeBefore;

    /**
     * 新增管理员的结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date managementAddTimeAfter;

}
